package cn.xcstudenth5.zhuocan.scollviewandwebview;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentTransaction;

import android.os.Bundle;

import org.scilab.forge.jlatexmath.core.AjLatexMath;

import io.github.kbiakov.codeview.classifier.CodeProcessor;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        //init flexiblerichtextview
        AjLatexMath.init(this);
        //code highlight
        CodeProcessor.init(this);


        FragmentTransaction ft = getSupportFragmentManager()
                .beginTransaction();
        //        ScollViewAdd changeFragment = new ScollViewAdd();
        //        ft.replace(R.id.frame_layout, changeFragment);
//        MathLoading loading = new MathLoading();
//        ft.replace(R.id.frame_layout, loading);
        //        ScollViewAdd viewAdd = new ScollViewAdd();
        //        ft.replace(R.id.frame_layout, viewAdd);

        RichTextView textView = new RichTextView();
        ft.replace(R.id.frame_layout, textView);
        ft.commit();
    }
}
